#include "widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
{

    QButtonGroup *group1 = new QButtonGroup(this);
    QButtonGroup *group2 = new QButtonGroup(this);


    QString str1[3] = {"Network","Handset","Tablet"};
    int ypos = 30;
    for(int i=0;i<3;i++){
        radio1[i] = new QRadioButton(str1[i],this);
        radio1[i]->setGeometry(10,ypos,150,30);
        ypos += 40;
        group1->addButton(radio1[i]);
    }

    QString str2[3] = {"In-Vehicle","Smart TV","Media Phone"};
    ypos = 30;
    for(int i=0;i<3;i++){
        radio2[i] = new QRadioButton(str2[i],this);
        if(i==2){
            radio2[i]->setChecked(true);
        }
        radio2[i]->setGeometry(180,ypos,150,30);
        ypos+=40;
        group2->addButton(radio2[i]);
    }



}

Widget::~Widget()
{
}

